package com.mms.member.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mms.member.dao.MemberOrderDao;
import com.mms.member.domain.MemberOrderDo;
import com.mms.member.service.MemberOrderService;


@Transactional
@Service
public class MemberOrderServiceImpl implements MemberOrderService {

	@Autowired
	MemberOrderDao memberOrderDao;
	
	@Override
	public MemberOrderDo get(Long id) {
		return memberOrderDao.get(id);
    }

	@Override
	public List<MemberOrderDo> list(Map<String, Object> map) {
		 return memberOrderDao.list(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		 return memberOrderDao.count(map);
	}

	@Override
	public int save(MemberOrderDo memberOrder) {
		return memberOrderDao.save(memberOrder);
	}

	@Override
	public int update(MemberOrderDo memberOrder) {
		return memberOrderDao.update(memberOrder);
	}

	@Override
	public int remove(Long memberOrderId) {
		return memberOrderDao.remove(memberOrderId);
	}

	@Override
	public boolean exit(Map<String, Object> params) {
		return memberOrderDao.exit(params);
	}

}
